<div class="wrapper">
    <div class="container" id="main">
        <?php
        $this->load->view('frontend/include/slider', array());
        ?>
		<!--
        <div class="main-ads">
            <a href="http://2banh.vn/">
                <img src="template/theme1/images/2banh_balloon.jpg" alt="" />
            </a>
        </div>
		-->
		<div class="clear"></div>
        <!----->
        <?php
        if ($series)
            foreach ($series as $sery) {
                $vs = $this->mvideo->gets_by_series($sery->SER_ID, 4);
				if (count($vs) <= 0) 
					continue;
                ?>
                <div class="main-list">
                    <div class="title">
        <?php echo $sery->SER_TITLE; ?>
                        <span></span>
                    </div>
        <?php if ($vs) foreach ($vs as $v) { ?>
                            <div class="main-item">
                                <a href="<?php echo video_url($v->VID_ID, $v->VID_CODE, $sery->PROG_CODE); ?>">
                                    <div class="thumb">
										<img src="<?php echo video_image($v->VID_LINK); ?>" alt="" />
										<div class="duration"><?php echo date("i:s", $v->VID_TIME);?></div>
									</div>
                                    <div class="description">
                                        <h4 class="title">
                <?php echo $v->VID_TITLE; ?>
                                        </h4>
                                        <h5 class="subtitle">
                                            &nbsp;
                                        </h5>
                                    </div>
                                </a>
                                <div class="clear"></div>
                            </div>
                    <?php } ?>
                </div>	
    <?php } ?>
    </div>
</div>
